package co.edu.uniandes.distribuidos.checkpoint.events;

import java.util.ArrayList;
import java.util.List;

public class EventContainer {
	
	private List<Event> events=new ArrayList<Event>();

	public List<Event> getEvents() {
		return events;
	}

	public void setEvents(List<Event> events) {
		this.events = events;
	}

	public boolean add(Event e) {
		return events.add(e);
	}

	public boolean remove(Event ev) {
		return events.remove(ev);
	}

	public boolean isEmpty() {
		return events.isEmpty();
	}

	public void removeAll() {
		events.clear();
	}

}
